package javaTest;

import java.util.Stack;

public class stack_queue_main {
    public static void main(String[] args) {
        Stack<Integer> stack  =new Stack<>();
        stack.push(12);
        stack.push(23);
        stack.push(34);
        stack.push(45);

        System.out.println(stack.pop());
        System.out.println(stack.peek());

    }
}
